package com.itheima.api.integer.demo01;

import java.math.BigDecimal;

public class BigDecimalDemo01 {

    public static void main(String[] args) {

        BigDecimal bigDecimal1 = new BigDecimal("12.04");
        BigDecimal bigDecimal2 = new BigDecimal("0.4");

        System.out.println(bigDecimal1.add(bigDecimal2));

        System.out.println(bigDecimal1.subtract(bigDecimal2));

        System.out.println(bigDecimal1.multiply(bigDecimal2));

        System.out.println(bigDecimal1.divide(bigDecimal2));

    }

}
